package com.lincoln.jenkins.test.deals;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 *     /// 发送者
 *     public string from_id { get; set; }
 *     /// 接收者
 *     public string to_id { get; set; }
 *     /// </summary>
 *     public string content { get; set; }
 *     /// 发送者昵称
 *     public string NickName { get; set; }
 *     /// 群名字
 *     public string ChatroomName { get; set; }
 *     /// 通过是需要用的
 *     public string Url { get; set; }
 *     /// 群头像
 *     public string ThumbUrl { get; set; }
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JoinChatroomDeal implements Deal{
    String fromId;
    String toId;
    String content;
    String nickName;
    String chatroomName;
    String url;
    String thumbUrl;

    public JoinChatroomDeal(Map<String,String> params){
        this.fromId = params.get("from_id");
        this.toId = params.get("to_id");
        this.content = params.get("content");
        this.nickName = params.get("NickName");
        this.chatroomName = params.get("ChatroomName");
        this.url = params.get("Url");
        this.thumbUrl = params.get("ThumbUrl");
    }
}
